package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 原料bom对象 mes_matbom
 * 
 * @author ruoyi
 * @date 2024-06-01
 */
public class MesMatbom extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Integer id;

    /** 原料BOM编码 */
//    @Excel(name = "原料BOM编码")
//    private String matBomId;

    /** 原料编码 */
    @Excel(name = "原料编码")
    private String matId;

    /** BOM编码 */
    @Excel(name = "BOM编码")
    private String bomId;

    private String oldBomId;

    /** 数量 */
    @Excel(name = "数量")
    private Long num;

    /**
     *
     *
     *
     * */
    private List<MesMatbom> mtrs;

    public void setOldBomId(String oldBomId)
    {
        this.oldBomId = oldBomId;
    }

    public String getOldBomId()
    {
        return oldBomId;
    }


    public List<MesMatbom> getMtrs() {
        return mtrs;
    }

    public void setMtrs(List<MesMatbom> mtrs) {
        this.mtrs = mtrs;
    }

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
//    public void setMatBomId(String matBomId)
//    {
//        this.matBomId = matBomId;
//    }
//
//    public String getMatBomId()
//    {
//        return matBomId;
//    }
    public void setMatId(String matId) 
    {
        this.matId = matId;
    }

    public String getMatId() 
    {
        return matId;
    }
    public void setBomId(String bomId) 
    {
        this.bomId = bomId;
    }

    public String getBomId() 
    {
        return bomId;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
//            .append("matBomId", getMatBomId())
            .append("matId", getMatId())
            .append("bomId", getBomId())
            .append("num", getNum())
            .append("oldBomId", getNum())
            .toString();
    }
}
